<!DOCTYPE html>
<html lang="en">
<head>
    <base href=""/>
    <meta charset="UTF-8">
    <title>站内通知模版</title>
    <link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css"/>
    <link type="text/css" rel="stylesheet" href="../static/css/bootstrap-responsive.min.css"/>
    <link type="text/css" rel="stylesheet" href="../static/css/bootstrap-datetimepicker.min.css"/>
    <link type="text/css" rel="stylesheet" href="../static/css/common.css"/>

    <script type='text/javascript' src='../static/js/jquery-1.10.2.min.js'></script>
    <script type='text/javascript' src='../static/js/bootstrap.min.js'></script>
    <script type='text/javascript' src='../static/js/bootstrap-datetimepicker.js'></script>
    <script type='text/javascript' src='../static/js/bootstrap-datetimepicker.zh-CN.js'></script>
    <script type="text/javascript" src="../static/js/common.js"></script>
    <script type='text/javascript' src='../static/js/page.js'></script>
    <script type='text/javascript' src='../static/js/stationNoticeTemplate.js'></script>
</head>
<body>
<div class="top"></div>
<div class="part">
    <h4 class="partTitle"><strong>站内通知模版查询</strong></h4>
    <form class="form-horizontal" id="templateForm">
        <input id="rows" name="rows" hidden="hidden" value="10">
        <input id="page" name="page" hidden="hidden" value="1">
        <div class="form-group">
        	<div class="col-md-3 col3ConditionAll">
	            <label for="stationNoticeName" class="col-sm-4 control-label partConditionTitle">模版名称</label>
	            <div class="col-sm-8 partCondition">
	                <input id="stationNoticeName" maxlength="20" name="stationNoticeName" class="form-control">
	            </div>
            </div>
            <div class="col-md-3 col3ConditionAll">
	            <label for="stationNoticeType" class="col-sm-4 control-label partConditionTitle">模版类型</label>
	            <div class="col-sm-8 partCondition">
	                <input id="stationNoticeType" maxlength="10" name="stationNoticeType" class="form-control">
	            </div>
            </div>
        </div>
    </form>
    <div class="form-group">
        <button class="btn btn-primary" type="button" onclick = "searchStationNoticeTemplate();">
            <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查询
        </button>
    </div>
</div>
<div class="part">
    <h4 class="partTitle"><strong>站内通知模版列表</strong></h4>
    <div class="partTable">
        <table class="table table-hover table-striped table-responsive">
            <thead>
            <tr>
                <th class = "chkwidth"><input id="chkAll" type="checkbox" onclick="checkAll('chk')"></th>
                <th class = "nowidth">序号</th>
                <th>模版名称</th>
                <th>模版类型</th>
                <th>模版内容</th>
            </tr>
            </thead>
            <tbody id="templateTbody">
            </tbody>
        </table>
    </div>
    <div class="partBtn">
		<button type="button" class="btn btn-primary" aria-label="Left Align" onclick="save();">
            <span><img src="../static/images/plus01.png" aria-hidden="true"/></span> 添加
        </button>
        <button type="button" class="btn btn-primary" aria-label="Left Align" onclick="update();">
            <span><img src="../static/images/modify.png" aria-hidden="true"/></span> 修改
        </button>
        <button type="button" class="btn btn-primary" aria-label="Left Align" onclick="del();">
            <span><img src="../static/images/delete.png" aria-hidden="true"/></span> 删除
        </button>
        <div class="partTurnPage">
            <ul class="list-inline">
                <li><a href="#" onclick="firstPage();return false;"><ins>首页</ins></a></li>
                <li><a href="#" onclick="formPage();return false;"><ins>上一页</ins></a></li>
                <li><a href="#" onclick="nextPage();return false;"><ins>下一页</ins></a></li>
                <li><a href="#" onclick="lastPage();return false;"><ins>尾页</ins></a></li>
                <li id="total">共0条 / 共0页</li>
                <li>转到</li>
                <li><input id="currentPage" value="1" type="text" class="form-control partCurrentPage"/></li>
                <li><a href="#" onclick="ensure();return false;"><ins>Go</ins></a></li>
            </ul>
        </div>
    </div>
</div>
<!-- form隐藏框-->
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="save" class="modal fade popup">
	<div class="popupFormModal">
	    <div class="popupForm">
	        <div class="modal-header">
	            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
	                <span aria-hidden="true">&times;</span>
	            </button>
	            <h4 class="modal-title" id = "saveMsg"></h4>
	        </div>
	        <div class="modal-body">
	            <form class="form-horizontal" id = "saveForm">
	            	<div class="form-group" >
	                    <label for="StationNoticeID" class="col-sm-3 control-label">模版ID</label>
	                    <div class="col-sm-6">
	                        <input  name="saveStationNoticeID" maxlength="10" class="form-control" id = "saveStationNoticeID"/>
	                    </div>
	                </div>
	                <div class="form-group" >
	                    <label for="stationNoticeName" class="col-sm-3 control-label">模版名称</label>
	                    <div class="col-sm-6">
	                        <input  name = "saveStationNoticeName" maxlength="20" class = "form-control" id = "saveStationNoticeName"/>
	                    </div>
	                </div>
	                    <div class="form-group" >
	                        <label for="StationNoticeType" class="col-sm-3 control-label">模版类型</label>
	                        <div class="col-sm-6">
	                            <input id="saveStationNoticeType" maxlength="10" name="saveStationNoticeType" class="form-control"/>
	                        </div>
	                    </div>
	                    <div class="form-group" >
	                        <label for="StationNoticeContent" class="col-sm-3 control-label">模版内容</label>
	                        <div class="col-sm-6">
	                            <input id="saveStationNoticeContent" maxlength="255" name="saveStationNoticeContent" class="form-control"/>
	                        </div>
	                    </div>
	                </form>
	            </div>
	            <div class="modal-footer popupFormfooter">
	                <button type="button" class="btn btn-primary" onclick="confirm();">确定</button>
	                <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
	            </div>
	        </div>
	    </div>
    </div>
    </body>
    </html>